<div class="content"> 
  <input type="hidden" id="isFirstTimeToAuction" value="<?php echo $isFirstTimeToAuction;?>"/>
  <!-- ------------------------------------------------begin  内容------------------------------------------------- -->
  <div class="box1 box-99 clearfix">
    <ul class="user-profile">
      <li class="avatar"><img src="<?php echo $userinfo['tx']['figureurl'];?>"/></li>
      <li class="gold-number">你的金币: <span class="alert-color"><?php echo $userinfo['web']['GoldCoinNumber'];?></span></li>
      <li class="checkin">金币不嫌多,赶紧赚一把 >
        <button class="style1-button free_get_gold task">做任务赚金币</button>
      </li>
    </ul>
    <div class="auction-history">
      <ul class="top_right_lists">
      <?php foreach ($auctionSuc['list'] as $item) {?>
		<li class="text-overflow">
			<a href="<?php echo site_url("c=auction&m=auctionHistory");?>">
				<img src="<?php echo $item['figureurl']?>" width="25" height="25"/>
				<?php echo $item['nickname']?><span class="alert-color">免费获得价值 <?php echo $item['pirce']?> 元的</span><?php echo $item['name']?>
			</a>
		</li>
      <?php } ?>
      </ul>
      <span class="total">累计有 <strong class="alert-color"><?php echo $auctionSuc['statis']['cid'];?></strong> 人获得奖品，价值 <strong class="alert-color"><?php echo $auctionSuc['statis']['sp']?></strong> 元</span> 
      <a class="style2-button iefix-view-button" href="<?php echo site_url("c=auction&m=auctionHistory&");?>">查看全部获奖历史</a> 
    </div>
    <div class="auction-nav-button">
    <div class="rules">
      <a class="duihuanGuize">兑奖规则</a>
      <a class="bg-btn-rule jinpaiGuize" >竞拍规则</a>
      </div>
    </div>
  </div>
  <h1 class="heading clearfix"> 全额兑换 <span class="state-rule">兑换宝贝一律10:00开抢，手快有手慢无，记得每天都来瞅瞅哦~</span>
  	<a class="settip auction-page-remind" href="javascript:void(0);">设置提醒</a> 
  </h1>
  <div class="list1 list-exchange">
	  <ul class="clearfix" style="background-color: #FFF8FB;">
	  <?php if(count($exchangeGoods)>0):?>
	  <?php foreach ($exchangeGoods as $item):?>
	    <li data-url="<?php echo $item['url'];?>" data-id="<?php echo $item['id'];?>">
	      <a href="javascript:;">
	        <img src="<?php echo $item['pic'];?>" style="width: 230px;height: 229px"/>
	        <h4 class="name"><?php echo $item['name'];?></h4>
	      </a>
	      <div class="other"> 
	      	<div class="info clearfix">
	      		<span class="count">兑换名额: <strong><?php echo $item['exchangeNumTol'];?></strong></span>
	      		<span class="price">价值:<strong><?php echo $item['pirce'];?></strong>元</span>
	  		</div>
	        <div class="action clearfix">
	        	<span class="num"><strong><?php echo $item['exchangeGold'];?></strong>金币</span>
	        	<a href="javascript:;" data-status="<?php echo $item['isUse'];?>" data-guanzhu="<?php echo $item['guanzhu'];?>" class="exchange1 btn<?php if($item['isUse']==0) echo " btn-end";if($item['isUse']==1) echo " btn-start";?>"><?php if($item['isUse']==-1) echo "即将开始"; if($item['isUse']==1) echo "全额兑换";if($item['isUse']==0) echo "兑换结束";?></a><!-- btn-start btn-end -->
	        </div>
	      </div>
	    </li>
	  <?php endforeach;?>
	  <?php else :?>
	  	<li style="padding: 50px 0 80px;width: 97%;border: 0;background-color: #FFF8FB;"><img alt="" src="<?php echo base_url('appearance/no-exchange.png');?>" /></li>
	  <?php endif;?>
	  </ul>
  </div>
  <!-- <h1 class="heading clearfix" id="todayAuction"> 今日竞拍 <?php if(count($todayGoods)>0):?> <span class="time" data-jiangeday="">剩余时间：00时00秒00分</span><?php endif;?> </h1>
  <ul class="list1 clearfix list-hover1">
  <?php if(count($todayGoods)>0):?>
  <?php foreach ($todayGoods as $key=>$value):?>
    <li class="auction-list-item">
      <div class="auction_content clearfix">
        <div class="auction_left">
          <div class="auction_product_detail clearfix">
            <div class="auction_product_pic">
              <div class="img_outer"><span class="imgmid"></span><a href="javascript:void(0)"><img src="<?php echo $value['pic']?>"/></a></div>
            </div>
            <p class="go_buy"> <a href="javascript:void(0);" class="goshop" onClick="fusion2.nav.open({url:'<?php echo $value['url'];?>'}); return false;">去购买>></a></p>
          </div>
          <div class="askfor_price">
            <h3 class="auc_pro_title"><?php echo $value['name']; ?></h3>
            <p>市场价：<span class="begin_number goodsprice"><?php echo $value['pirce']?></span>元</p>
            <p>已出价：<span class="begin_number offertime"><?php echo $value['auctionOffersTime'];?></span>次</p>
            <div class="input_text clearfix"> <font style="display:block;">输入价格：</font>
              <input class="input_price" name="price" type="text" maxlength="10" autocomplete="off">
              <font>元</font>
              <p class="gold_out">(出价一次消耗10金币)</p>
              <button class="give_price" type="button" data-agid="<?php echo $value['id'];?>">出价</button>
              <a class="history_link" href="javascript:void(0)">我的出价历史</a> </div>
            <form class="form_sub">
              <div class="history_notes">
                <h3 class="history_notes_title">我的出价历史<span class="close_notes"></span></h3>
                <ul>
                <?php foreach ($value['auctionOffersSelf'] as $item3):?>
                   <li class="price_note">出价<span class="note_price"><?php echo $item3['offer'];?>元</span><?php echo $item3['shicha'];?></li>
                <?php endforeach;?>
                </ul>
              </div>
            </form>
          </div>
        </div>
        <div class="auction_right">
          <h3>竞拍动态</h3>
          <ul>
          <?php foreach ($value['auctionOffers'] as $item2):?>
              <li class="trends clearfix">
                  <div class="list_img_out"><img src="<?php echo $item2['figureurl'];?>"></div>
                  <div class="trends_list">
                      <p class="nickname"><span class="nickname_user" title="<?php echo $item2['nickname'];?>"><?php echo $item2['nickname'];?></span><span class="time_before">（<?php echo $item2['shicha'];?>）</span></p>
                      <p class="can_give">出价：<?php echo $item2['offer'];?>元</p>
                  </div>
              </li>
          <?php endforeach;?> 
          </ul>
        </div>
      </div>
    </li>
  <?php endforeach;?>
  <?php else:?>
  	<li style="padding: 50px 0 80px;width: 97%;border: 0;text-align: center;"><img alt="" src="<?php echo base_url('appearance/no-auction.png');?>" /></li>
  <?php endif;?>
  </ul>
  <h1 class="heading auction_rules_tit">竞拍规则</h1>
  <div class="box2"> <img src="appearance/auction_guide_summary.gif" alt="1.领取金币;2.参与竞拍;3.查看获奖结果;4.坐等收货"/>
    <ol class="auction-guide">
      <li class="first">
        <h2><span class="wrap"><span>1</span></span>领取金币</h2>
        <p>点击“<a href="javascript:void(0)" class="get_gold">领取金币</a>”！ 每日登陆即可领取100金币参加竞拍，连续登陆5天及以上，每日登陆可领取200金币。</p>
        <img src="appearance/auction_guide_setup1.gif"/> </li>
      <li>
        <h2><span class="wrap"><span>2</span></span>参与竞拍</h2>
        <p>点击“<a href="javascript:void(0)" class="free_jingpai">免费竞拍</a>”，输入您认为的唯一最低价，点击出价即可。每件奖品可以出价20次，每次出价消耗10金币。<br/>
          获奖条件：出价唯一，并且是唯一中的最低价。即，只有一个人出价的金额中，最低金额的出价者中奖。<br/>
          例如：</p>
        <img src="appearance/auction_guide_setup2.gif"/> </li>
      <li>
        <h2><span class="wrap"><span>3</span></span>查看结果</h2>
        <p>每日24点竞拍结束后，即可点击“<a href="?act=auctionHistory">查看全部获奖历史</a>”，您最多可以查看最近10天的获奖历史。<br/>
          若您竞拍成功，请在<strong>5个工作日</strong>内联系优品客服完成兑奖。过期将自动视为放弃领奖。</p>
        <img src="appearance/auction_guide_setup3.gif"/> </li>
      <li>
        <h2><span class="wrap"><span>4</span></span>联系兑奖</h2>
        <p>添加优品客服为好友，提供兑奖码，核对无误后，按照客服要求提供信息即可在家坐等收货！商品以及邮寄费用我们来付，您全程不花一分钱！</p>
        <button class="auction_contact_service opener" >联系优品客服兑奖</button>
      </li>
    </ol>
  </div> -->
  <div class="box2 auction_suggestion">
    <!-- <h2 class="auction_suggestion_howto_t">竞拍小攻略：</h2>
    <ol>
      <li><strong>攒金币</strong>--想要参与竞拍，没有金币那是万万不行的~所以，记得每天来领金币才是王道！</li>
      <li><strong>心里有底</strong>--查看历史获奖结果，大致判断商品的获奖价格一般出现在什么范围内，有目标地进行竞拍。</li>
      <li><strong>灵活应对</strong>--对于心仪的宝贝，金币充足的话，可采取连续数值的方式竞拍；金币不足则可用随机数。</li>
    </ol> -->
    <h2 class="auction_suggestion_tips_t">温馨提示：</h2>
    <p>您可以使用<a href="javascript:void(0)" class="qq_remind auction-foot-remind">QQ提醒</a>来查看获奖结果。请妥善保管好自己的兑奖码，以防止被盗领礼品。为保证活动的公正公平，不可用新申请的qq或多个qq蓄意兑换或竞拍，我们保留活动的最终解释权。</p>
  </div>
  <!-- ------------------------------------------------end  内容------------------------------------------------- --> 
</div>
<!-- 页面js  --> 
<script src="<?php echo base_url("javascript/auction.js?v=2015030501");?>" type="text/javascript"></script>